package com.mylater.nace.server;

import java.net.InetSocketAddress;

/**
 * The Server represents
 * @version $Id$
 * @author fengjiachun
 */
public interface Server {

	public enum TRANSMISSION_PROTOCOL {
		TCP,
		UDP;
	}

	TRANSMISSION_PROTOCOL getTransmissionProtocol();

	void startServer() throws Exception;

	void startServer(int port) throws Exception;;

	void startServer(InetSocketAddress socketAddress) throws Exception;

	void stopServer() throws Exception;
}
